package com.dyys.extension.extra;

import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;


/**
 * IdEntity基类
 * @author guanjianghuai
 *
 */
@SuppressWarnings("serial")
public abstract class ExtraEntity implements Extra{

	@TableField(exist = false)
	protected Map<String, Object> ext = new HashMap<>();

	public void set(String propName, Object propVal){
		this.ext.put(propName, propVal);
	}
	
	public Object get(String propName){
		return this.ext.get(propName);
	}
	
	@JsonIgnore
	public Map<String, Object> getExt() {
		return ext;
	}

}
